#include "apr_general.h"
#include "apr_pools.h"
#include "apr_errno.h"
#include <Apisockcomm_nonb.h>


typedef struct
{  
	int fd; 
	int events;
	int len;
	long last_active;
	char rIp[16];
	unsigned short rPort;
	apr_pool_t* pSession_pool; 
	apr_pool_t* pRequire_pool;
	FRAME frame;
}myevent_s;


void InitAprPool();
void FreeAprPool();

int InitSessionPool( myevent_s *ev, unsigned long lSession_Memory_size);
int FreeSessionPool( myevent_s *ev);

void InitRequireFrame( myevent_s* ev, unsigned long lRequire_Memory_size);
void FreeRequireFrame( myevent_s* ev);

